/**
 *
 */
package com.ease.business.systemmonitor.util;

/**
 * @author nathanleewei
 *
 */
@Deprecated
/* pls use Detect.isEmpty instead */
public final class StringUtil {
	public static boolean isNullOrEmpty(String s) {
		return ((s == null) || (isBlank(s)));
	}

	public static boolean isBlank(String str) {
		int length;
		if (str != null)
			if ((length = str.length()) != 0)

				for (int i = 0; i < length; ++i) {
					if (!(Character.isWhitespace(str.charAt(i))))
						return false;

				}

		return true;
	}
}
